from selenium.webdriver.common.by import By

from utils.util import BoxDriver,BasePage

class Login:

    def login(self,driver,username,passwd):
        self.driver = driver
        self.driver.find_element(By.ID,'account').send_keys(username)
        self.driver.find_element(By.ID,'password').send_keys(passwd)
        self.driver.find_element(By.ID, 'submit').click()

if __name__ == '__main__':
    driver = BoxDriver('Chrome', 'http://192.168.85.34:10086/ranzhi/sys/user-login.html')
    Login().login(driver,'admin','123456')